package com.copm.ifm.servers.sys.dataauth;


import com.copm.ifm.base.service.mp.dataauth.component.AbstractDataAuthSqlHandler;
import com.copm.ifm.base.service.mp.dataauth.component.DataAuthStrategy;
import com.copm.ifm.base.service.mp.dataauth.entity.DataAuthCache;
import net.sf.jsqlparser.statement.select.PlainSelect;

/**
 * @author zzf
 * @date 17:54 2021/1/29
 */
public class MyDataAuthStrategy implements DataAuthStrategy {

    @Override
    public void doParse(PlainSelect plainSelect, Class<?> entityClass) {

        AbstractDataAuthSqlHandler<?, ?> dataAuthSqlHandler = DataAuthCache.getSqlHandlerById(SqlHandlerIdEnum.ROLE.getId());

        dataAuthSqlHandler.doParse(plainSelect, entityClass);

    }

}